package com.example.factory.simple;

/**
 * Created by fjx on 2021/6/11
 */
public class SimplePayFactory {

    public static IPay createPay(String payType){
        if (payType.equals("weChat")) {
            return new WechatPay();
        }else if (payType.equals("ali")){
            return new AliPay();
        }
        return null;
    }

}
